const fs = require("fs");
const path = require("path");
var filePath = path.join(__dirname,"/1.txt");
var fd = fs.openSync(filePath,"r");//同步方法
var buf = Buffer.alloc(10);
var result = fs.readSync(fd,buf);